﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

namespace HolisticWare.VoIP.Getafisk.EXE_01PL_05netfx30.SL30.any_any_any
{
	public partial class MainPage : UserControl
	{
		public MainPage()
		{
			InitializeComponent();
		}


		private void NavigateTo(object sender, RoutedEventArgs e)
		{

			HyperlinkButton navigationButton = sender as HyperlinkButton;
			String goToPage = navigationButton.Tag.ToString();
			//this.MainContent.Navigate(new Uri(goToPage, UriKind.Relative));
		}

		private void MainContent_NavigationFailed(object sender, NavigationFailedEventArgs e)
		{
			string msg;
			msg = "There was an error while navigating to the following url: {0}.";
			msg += "Check if the url is correct!";

			throw new Exception(string.Format(msg, e.Uri));
		}
	}
}
